!function(c) {
    function e(e) {
        for (var t, n, r = e[0], i = e[1], o = e[2], a = 0, s = []; a < r.length; a++)
            n = r[a],
            Object.prototype.hasOwnProperty.call(l, n) && l[n] && s.push(l[n][0]),
            l[n] = 0;
        for (t in i)
            Object.prototype.hasOwnProperty.call(i, t) && (c[t] = i[t]);
        for (h && h(e); s.length; )
            s.shift()();
        return d.push.apply(d, o || []),
        u()
    }
    function u() {
        for (var e, t = 0; t < d.length; t++) {
            for (var n = d[t], r = !0, i = 1; i < n.length; i++) {
                var o = n[i];
                0 !== l[o] && (r = !1)
            }
            r && (d.splice(t--, 1),
            e = f(f.s = n[0]))
        }
        return e
    }
    var n = {}
      , l = {
        37: 0
    }
      , d = [];
    function f(e) {
        var t;
        return (n[e] || (t = n[e] = {
            i: e,
            l: !1,
            exports: {}
        },
        c[e].call(t.exports, t, t.exports, f),
        t.l = !0,
        t)).exports
    }
    f.e = function(r) {
        var i, o, e, a, t, n = [], s = l[r];
        return 0 !== s && (s ? n.push(s[2]) : (t = new Promise(function(e, t) {
            s = l[r] = [e, t]
        }
        ),
        n.push(s[2] = t),
        (i = document.createElement("script")).charset = "utf-8",
        i.timeout = 120,
        f.nc && i.setAttribute("nonce", f.nc),
        i.src = f.p + "js/" + ({
            2: "manual"
        }[t = r] || t) + "-" + {
            2: "833e8936"
        }[t] + ".js",
        o = new Error,
        e = function(e) {
            i.onerror = i.onload = null,
            clearTimeout(a);
            var t, n = l[r];
            0 !== n && (n && (t = e && ("load" === e.type ? "missing" : e.type),
            e = e && e.target && e.target.src,
            o.message = "Loading chunk " + r + " failed.\n(" + t + ": " + e + ")",
            o.name = "ChunkLoadError",
            o.type = t,
            o.request = e,
            n[1](o)),
            l[r] = void 0)
        }
        ,
        a = setTimeout(function() {
            e({
                type: "timeout",
                target: i
            })
        }, 12e4),
        i.onerror = i.onload = e,
        document.head.appendChild(i))),
        Promise.all(n)
    }
    ,
    f.m = c,
    f.c = n,
    f.d = function(e, t, n) {
        f.o(e, t) || Object.defineProperty(e, t, {
            enumerable: !0,
            get: n
        })
    }
    ,
    f.r = function(e) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
            value: "Module"
        }),
        Object.defineProperty(e, "__esModule", {
            value: !0
        })
    }
    ,
    f.t = function(t, e) {
        if (1 & e && (t = f(t)),
        8 & e)
            return t;
        if (4 & e && "object" == typeof t && t && t.__esModule)
            return t;
        var n = Object.create(null);
        if (f.r(n),
        Object.defineProperty(n, "default", {
            enumerable: !0,
            value: t
        }),
        2 & e && "string" != typeof t)
            for (var r in t)
                f.d(n, r, function(e) {
                    return t[e]
                }
                .bind(null, r));
        return n
    }
    ,
    f.n = function(e) {
        var t = e && e.__esModule ? function() {
            return e.default
        }
        : function() {
            return e
        }
        ;
        return f.d(t, "a", t),
        t
    }
    ,
    f.o = function(e, t) {
        return Object.prototype.hasOwnProperty.call(e, t)
    }
    ,
    f.p = "/",
    f.oe = function(e) {
        throw e
    }
    ;
    var t = (r = window.webpackJsonp = window.webpackJsonp || []).push.bind(r);
    r.push = e;
    for (var r = r.slice(), i = 0; i < r.length; i++)
        e(r[i]);
    var h = t;
    d.push([703, 1, 0]),
    u()
}({
    169: function(e, t, n) {},
    170: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }),
        t.recordWatchTime = I,
        t.setCourse = function(e) {
            v = e.isForbidPopQuestion
        }
        ,
        t.setPlayer = function(e) {
            c = e
        }
        ,
        t.startLearn = y;
        var r = (t = n(3)) && t.__esModule ? t : {
            default: t
        };
        function a(e, t) {
            var n, r = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
            if (r)
                return (r = r.call(e)).next.bind(r);
            if (Array.isArray(e) || (r = function(e, t) {
                var n;
                if (e)
                    return "string" == typeof e ? i(e, t) : "Map" === (n = "Object" === (n = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : n) || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0
            }(e)) || t && e && "number" == typeof e.length)
                return r && (e = r),
                n = 0,
                function() {
                    return n >= e.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: e[n++]
                    }
                }
                ;
            throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
        }
        function i(e, t) {
            (null == t || t > e.length) && (t = e.length);
            for (var n = 0, r = new Array(t); n < t; n++)
                r[n] = e[n];
            return r
        }
        var o = {
            sessionID: (n = $("#sessionId")).val(),
            activityID: n.data("activity"),
            stepID: n.data("step"),
            courseId: n.data("course"),
            closeFlag: 0
        }
          , s = n.data("ordid")
          , n = null
          , c = null
          , u = 0
          , l = null
          , d = 5
          , f = !1
          , h = 15
          , p = []
          , m = null
          , v = !1;
        function y() {
            f = !1,
            function() {
                if (f)
                    return;
                r.default.post("/course/getSessionId", {
                    stepId: o.stepID,
                    courseId: o.courseId
                }).then(function(e) {
                    e.data.success ? (o.sessionID = e.data.instance,
                    I(0),
                    f || (null != l && (clearInterval(l),
                    l = null,
                    u = 0),
                    l = setInterval(w, 6e4),
                    c && (c.videoPlay(),
                    $("#player object").show()))) : $.growl.error({
                        message: e.data.errorMsg
                    })
                })
            }(),
            v || f || (null != m && (clearInterval(m),
            m = null),
            m = setTimeout(function() {
                0 == p.length ? r.default.get(190 == s ? "/json/course190.json" : "/json/course.json").then(function(e) {
                    p = e.data,
                    C()
                }) : C()
            }, 6e4 * h))
        }
        function g() {
            I(1),
            b(),
            k()
        }
        function w() {
            d <= ++u && (u = 0,
            I(2))
        }
        function b() {
            clearInterval(l),
            l = null,
            u = 0,
            c && (c.videoPause(),
            $("#player object").hide())
        }
        function I(e) {
            if (f)
                return !1;
            o.sessionID && (o.closeFlag = e,
            r.default.post("/course/recordtime", o).then(function(e) {
                e.data.success || (f = f = !0,
                b(),
                k(),
                $("#comfirmModel").modal({
                    show: !0,
                    backdrop: !1
                }))
            }))
        }
        function k() {
            clearInterval(m),
            l = null
        }
        function C() {
            if (!f) {
                g(),
                f = !0;
                for (var r = $("#questionModel"), e = parseInt(Math.random() * p.length), i = p[e], t = (r.find(".question-title p").text(i.question),
                ""), n = a(i.options); !(o = n()).done; ) {
                    var o = o.value;
                    t += '<div id="p-' + o.id + '" class="answer" data-answer="' + o.id + '" > <span class="question-id"><i>' + o.id + '</i></span> <div class="muti"> <div>' + o.content + '</div> </div> <i class="icon-sel"></i> </div>'
                }
                r.find(".question-content").html(t),
                r.modal({
                    backdrop: "static",
                    keyboard: !1
                }),
                r.find(".question-content div.answer").on("click", function() {
                    var e = i.answer
                      , t = $(this).data("answer")
                      , n = $("#p-" + t);
                    (e == t ? (n.find(".question-id").addClass("id-green"),
                    n) : (n.find(".question-id").addClass("id-red"),
                    n.find(".icon-sel").addClass("icon icon-cuowu fc-red"),
                    $("#p-" + e).find(".question-id").addClass("id-green"),
                    $("#p-" + e))).find(".icon-sel").addClass("icon icon-zhengque fc-green"),
                    r.find(".question-content div").off("click"),
                    setTimeout(function() {
                        y(),
                        r.modal("hide")
                    }, 2e3)
                })
            }
        }
        !function() {
            if (window.ActiveXObject || "ActiveXObject"in window)
                return 1
        }() ? $(document).on("visibilitychange", function() {
            f || document.hidden && I(2)
        }) : h = 7,
        $(window).on("beforeunload", function(e) {
            f || ($(document).off("visibilitychange"),
            g())
        }),
        $("#comfirmModel").on("click", ".yes", function() {
            f = !1,
            y(),
            $("#comfirmModel").modal("hide")
        }).on("click", ".no", function() {
            (window.opener = window).open(" ", "_self").close()
        })
    },
    2: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }),
        t.default = void 0;
        var r = n(11)
          , i = (n(4),
        n(5),
        (n = n(3)) && n.__esModule ? n : {
            default: n
        });
        n = function() {
            function e(e) {
                var t = e.$left
                  , n = e.$right
                  , r = e.total
                  , i = e.$moveEl
                  , o = e.moveLen
                  , a = e.showLen
                  , s = e.moveDis
                  , e = e.intervalTime
                  , e = void 0 === e ? 300 : e;
                r <= 0 || ((!o || o <= 0) && (o = 1),
                (!a || a <= 0) && (a = 1),
                this.$left = t,
                this.$right = n,
                this.total = r,
                this.moveLen = o,
                this.showLen = a,
                this.$moveEl = i,
                this.intervalTime = e,
                this.moveDis = s,
                this.moveTimes = Math.ceil((this.total - this.showLen) / this.moveLen),
                this.moveCount = 0,
                this.bindEvent(t, !0),
                this.bindEvent(n, !1))
            }
            var t = e.prototype;
            return t.bindEvent = function(e, t) {
                var n, r = this;
                e.on("click", function() {
                    if (t) {
                        if (r.moveCount--,
                        r.moveCount < 0)
                            return void (r.moveCount = 0)
                    } else if (r.total > r.showLen && (r.moveCount++,
                    r.moveCount > r.moveTimes))
                        return void (r.moveCount = r.moveTimes);
                    n = -(r.moveCount * r.moveDis),
                    r.move(n)
                })
            }
            ,
            t.move = function(e) {
                this.$moveEl.animate({
                    marginLeft: e
                }, this.intervalTime, function() {})
            }
            ,
            e
        }();
        n = {
            validate: r.validate,
            formReset: r.formReset,
            iCheck: r.iCheck,
            dropdown: r.dropdown,
            alter: r.alter,
            verificationCode: r.verificationCode,
            Modal: r.Modal,
            Tab: r.Tab,
            getCookie: r.getCookie,
            getGuid: r.getGuid,
            Filter: r.Filter,
            throttle: r.throttle,
            Carousel: n,
            debounce: r.debounce,
            forbiddenRightButton: function(e) {
                document.oncontextmenu = new Function("return false;"),
                document.onkeydown = document.onkeyup = document.onkeypress = function(e) {
                    var e = e || window.event || arguments.callee.caller.arguments[0]
                      , t = e.keyCode || e.which || e.charCode;
                    if (e && 123 == t)
                        return e.returnValue = !1,
                        window.event.cancelBubble = !0,
                        window.event.returnValue = !1
                }
            },
            confirmModal: r.confirmModal,
            getFileType: r.getFileType,
            downloadfile: r.downloadfile,
            chooseDoubleDate: r.chooseDoubleDate,
            getFormatDate: r.getFormatDate,
            selectMultiple: r.selectMultiple
        };
        t.default = n,
        $(function() {
            var n;
            $("#GG").pin({
                containerSelector: ".main",
                padding: {
                    bottom: 160
                }
            }),
            $(".board-hover li").hover(function() {
                $(this).siblings("li").find("img").removeClass("show fadeIn animated"),
                $(this).siblings("li").find(".name").removeClass("show fadeIn animated"),
                $(this).siblings("li").find(".left-img").removeClass("show fadeIn animated"),
                $(this).siblings("li").find(".desc-tag").removeClass("show fadeIn animated"),
                $(this).find("img").addClass("show fadeIn animated"),
                $(this).find(".name").addClass("show fadeIn animated"),
                $(this).find(".left-img").addClass("show fadeIn animated"),
                $(this).find(".desc-tag").addClass("show fadeIn animated")
            }),
            $(".board-hover").each(function() {
                var e = $(this)
                  , e = (e.find("li img").removeClass("show fadeIn animated"),
                e.find("li .name").removeClass("show fadeIn animated"),
                e.find("li .left-img").removeClass("show fadeIn animated"),
                e.find("li .desc-tag").removeClass("show fadeIn animated"),
                e.find("li:first"));
                e.find("img").addClass("show fadeIn animated"),
                e.find(".name").addClass("show fadeIn animated"),
                e.find(".left-img").addClass("show fadeIn animated"),
                e.find(".desc-tag").addClass("show fadeIn animated")
            }),
            0 < (n = $(".main-banner")).length && i.default.post("/bannerImages", {
                code: 1
            }).then(function(e) {
                var t;
                e.data.success && (0 < (e = e.data.instance).length && (t = e[0],
                n.find(".pull-left ul").html('<li data-bannerid="' + t.bannerID + '"> <a ' + (t.link ? 'target="_blank"' : "") + ' href="' + (t.link || "javascript:void(0)") + '"} class="pull-left"><img src="' + t.imageUrl + '"></a></li>'),
                n.removeClass("hide")),
                1 < e.length && (t = e[1],
                n.find(".pull-right ul").html('<li data-bannerid="' + t.bannerID + '"> <a ' + (t.link ? 'target="_blank"' : "") + ' href="' + (t.link || "javascript:void(0)") + '"} ><img src="' + t.imageUrl + '"></a></li>')))
            }),
            $(".main-banner").on("click", "li", function() {
                var e = $(this).data("bannerid");
                i.default.post("/recordCount", {
                    bannerID: e
                }).then(function(e) {})
            })
        }),
        (0,
        r.permissionButtonAuth)()
    },
    4: function(e, t, n) {},
    5: function(e, t, n) {},
    703: function(e, t, n) {
        e.exports = n(704)
    },
    704: function(e, t, n) {
        "use strict";
        r(n(2));
        var a = r(n(3))
          , c = (n(169),
        n(170));
        function r(e) {
            return e && e.__esModule ? e : {
                default: e
            }
        }
        function C() {
            /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
            C = function() {
                return a
            }
            ;
            var a = {}
              , e = Object.prototype
              , c = e.hasOwnProperty
              , t = "function" == typeof Symbol ? Symbol : {}
              , r = t.iterator || "@@iterator"
              , n = t.asyncIterator || "@@asyncIterator"
              , s = t.toStringTag || "@@toStringTag";
            function u(e, t, n) {
                return Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }),
                e[t]
            }
            try {
                u({}, "")
            } catch (e) {
                u = function(e, t, n) {
                    return e[t] = n
                }
            }
            function l(e, t, n, r) {
                var i, o, a, s, t = t && t.prototype instanceof h ? t : h, t = Object.create(t.prototype), r = new b(r || []);
                return t._invoke = (i = e,
                o = n,
                a = r,
                s = "suspendedStart",
                function(e, t) {
                    if ("executing" === s)
                        throw new Error("Generator is already running");
                    if ("completed" === s) {
                        if ("throw" === e)
                            throw t;
                        return k()
                    }
                    for (a.method = e,
                    a.arg = t; ; ) {
                        var n = a.delegate;
                        if (n) {
                            n = function e(t, n) {
                                var r = t.iterator[n.method];
                                if (void 0 === r) {
                                    if (n.delegate = null,
                                    "throw" === n.method) {
                                        if (t.iterator.return && (n.method = "return",
                                        n.arg = void 0,
                                        e(t, n),
                                        "throw" === n.method))
                                            return f;
                                        n.method = "throw",
                                        n.arg = new TypeError("The iterator does not provide a 'throw' method")
                                    }
                                    return f
                                }
                                r = d(r, t.iterator, n.arg);
                                if ("throw" === r.type)
                                    return n.method = "throw",
                                    n.arg = r.arg,
                                    n.delegate = null,
                                    f;
                                r = r.arg;
                                return r ? r.done ? (n[t.resultName] = r.value,
                                n.next = t.nextLoc,
                                "return" !== n.method && (n.method = "next",
                                n.arg = void 0),
                                n.delegate = null,
                                f) : r : (n.method = "throw",
                                n.arg = new TypeError("iterator result is not an object"),
                                n.delegate = null,
                                f)
                            }(n, a);
                            if (n) {
                                if (n === f)
                                    continue;
                                return n
                            }
                        }
                        if ("next" === a.method)
                            a.sent = a._sent = a.arg;
                        else if ("throw" === a.method) {
                            if ("suspendedStart" === s)
                                throw s = "completed",
                                a.arg;
                            a.dispatchException(a.arg)
                        } else
                            "return" === a.method && a.abrupt("return", a.arg);
                        s = "executing";
                        n = d(i, o, a);
                        if ("normal" === n.type) {
                            if (s = a.done ? "completed" : "suspendedYield",
                            n.arg === f)
                                continue;
                            return {
                                value: n.arg,
                                done: a.done
                            }
                        }
                        "throw" === n.type && (s = "completed",
                        a.method = "throw",
                        a.arg = n.arg)
                    }
                }
                ),
                t
            }
            function d(e, t, n) {
                try {
                    return {
                        type: "normal",
                        arg: e.call(t, n)
                    }
                } catch (e) {
                    return {
                        type: "throw",
                        arg: e
                    }
                }
            }
            a.wrap = l;
            var f = {};
            function h() {}
            function i() {}
            function p() {}
            var t = {}
              , o = (u(t, r, function() {
                return this
            }),
            Object.getPrototypeOf)
              , o = o && o(o(I([])))
              , m = (o && o !== e && c.call(o, r) && (t = o),
            p.prototype = h.prototype = Object.create(t));
            function v(e) {
                ["next", "throw", "return"].forEach(function(t) {
                    u(e, t, function(e) {
                        return this._invoke(t, e)
                    })
                })
            }
            function y(a, s) {
                var t;
                this._invoke = function(n, r) {
                    function e() {
                        return new s(function(e, t) {
                            !function t(e, n, r, i) {
                                var o, e = d(a[e], a, n);
                                if ("throw" !== e.type)
                                    return (n = (o = e.arg).value) && "object" == typeof n && c.call(n, "__await") ? s.resolve(n.__await).then(function(e) {
                                        t("next", e, r, i)
                                    }, function(e) {
                                        t("throw", e, r, i)
                                    }) : s.resolve(n).then(function(e) {
                                        o.value = e,
                                        r(o)
                                    }, function(e) {
                                        return t("throw", e, r, i)
                                    });
                                i(e.arg)
                            }(n, r, e, t)
                        }
                        )
                    }
                    return t = t ? t.then(e, e) : e()
                }
            }
            function g(e) {
                var t = {
                    tryLoc: e[0]
                };
                1 in e && (t.catchLoc = e[1]),
                2 in e && (t.finallyLoc = e[2],
                t.afterLoc = e[3]),
                this.tryEntries.push(t)
            }
            function w(e) {
                var t = e.completion || {};
                t.type = "normal",
                delete t.arg,
                e.completion = t
            }
            function b(e) {
                this.tryEntries = [{
                    tryLoc: "root"
                }],
                e.forEach(g, this),
                this.reset(!0)
            }
            function I(t) {
                if (t) {
                    var n, e = t[r];
                    if (e)
                        return e.call(t);
                    if ("function" == typeof t.next)
                        return t;
                    if (!isNaN(t.length))
                        return n = -1,
                        (e = function e() {
                            for (; ++n < t.length; )
                                if (c.call(t, n))
                                    return e.value = t[n],
                                    e.done = !1,
                                    e;
                            return e.value = void 0,
                            e.done = !0,
                            e
                        }
                        ).next = e
                }
                return {
                    next: k
                }
            }
            function k() {
                return {
                    value: void 0,
                    done: !0
                }
            }
            return u(m, "constructor", i.prototype = p),
            u(p, "constructor", i),
            i.displayName = u(p, s, "GeneratorFunction"),
            a.isGeneratorFunction = function(e) {
                e = "function" == typeof e && e.constructor;
                return !!e && (e === i || "GeneratorFunction" === (e.displayName || e.name))
            }
            ,
            a.mark = function(e) {
                if (Object.setPrototypeOf)
                    Object.setPrototypeOf(e, p);
                else {
                    for (var t = e, n = p, r = Object.getOwnPropertyNames(n), i = 0; i < r.length; i++) {
                        var o = r[i]
                          , a = Object.getOwnPropertyDescriptor(n, o);
                        a && a.configurable && void 0 === t[o] && Object.defineProperty(t, o, a)
                    }
                    u(e, s, "GeneratorFunction")
                }
                return e.prototype = Object.create(m),
                e
            }
            ,
            a.awrap = function(e) {
                return {
                    __await: e
                }
            }
            ,
            v(y.prototype),
            u(y.prototype, n, function() {
                return this
            }),
            a.AsyncIterator = y,
            a.async = function(e, t, n, r, i) {
                void 0 === i && (i = Promise);
                var o = new y(l(e, t, n, r),i);
                return a.isGeneratorFunction(t) ? o : o.next().then(function(e) {
                    return e.done ? e.value : o.next()
                })
            }
            ,
            v(m),
            u(m, s, "Generator"),
            u(m, r, function() {
                return this
            }),
            u(m, "toString", function() {
                return "[object Generator]"
            }),
            a.keys = function(n) {
                var e, r = [];
                for (e in n)
                    r.push(e);
                return r.reverse(),
                function e() {
                    for (; r.length; ) {
                        var t = r.pop();
                        if (t in n)
                            return e.value = t,
                            e.done = !1,
                            e
                    }
                    return e.done = !0,
                    e
                }
            }
            ,
            a.values = I,
            b.prototype = {
                constructor: b,
                reset: function(e) {
                    if (this.prev = 0,
                    this.next = 0,
                    this.sent = this._sent = void 0,
                    this.done = !1,
                    this.delegate = null,
                    this.method = "next",
                    this.arg = void 0,
                    this.tryEntries.forEach(w),
                    !e)
                        for (var t in this)
                            "t" === t.charAt(0) && c.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0)
                },
                stop: function() {
                    this.done = !0;
                    var e = this.tryEntries[0].completion;
                    if ("throw" === e.type)
                        throw e.arg;
                    return this.rval
                },
                dispatchException: function(n) {
                    if (this.done)
                        throw n;
                    var r = this;
                    function e(e, t) {
                        return o.type = "throw",
                        o.arg = n,
                        r.next = e,
                        t && (r.method = "next",
                        r.arg = void 0),
                        !!t
                    }
                    for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
                        var i = this.tryEntries[t]
                          , o = i.completion;
                        if ("root" === i.tryLoc)
                            return e("end");
                        if (i.tryLoc <= this.prev) {
                            var a = c.call(i, "catchLoc")
                              , s = c.call(i, "finallyLoc");
                            if (a && s) {
                                if (this.prev < i.catchLoc)
                                    return e(i.catchLoc, !0);
                                if (this.prev < i.finallyLoc)
                                    return e(i.finallyLoc)
                            } else if (a) {
                                if (this.prev < i.catchLoc)
                                    return e(i.catchLoc, !0)
                            } else {
                                if (!s)
                                    throw new Error("try statement without catch or finally");
                                if (this.prev < i.finallyLoc)
                                    return e(i.finallyLoc)
                            }
                        }
                    }
                },
                abrupt: function(e, t) {
                    for (var n = this.tryEntries.length - 1; 0 <= n; --n) {
                        var r = this.tryEntries[n];
                        if (r.tryLoc <= this.prev && c.call(r, "finallyLoc") && this.prev < r.finallyLoc) {
                            var i = r;
                            break
                        }
                    }
                    var o = (i = i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc ? null : i) ? i.completion : {};
                    return o.type = e,
                    o.arg = t,
                    i ? (this.method = "next",
                    this.next = i.finallyLoc,
                    f) : this.complete(o)
                },
                complete: function(e, t) {
                    if ("throw" === e.type)
                        throw e.arg;
                    return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg,
                    this.method = "return",
                    this.next = "end") : "normal" === e.type && t && (this.next = t),
                    f
                },
                finish: function(e) {
                    for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
                        var n = this.tryEntries[t];
                        if (n.finallyLoc === e)
                            return this.complete(n.completion, n.afterLoc),
                            w(n),
                            f
                    }
                },
                catch: function(e) {
                    for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
                        var n, r, i = this.tryEntries[t];
                        if (i.tryLoc === e)
                            return "throw" === (n = i.completion).type && (r = n.arg,
                            w(i)),
                            r
                    }
                    throw new Error("illegal catch attempt")
                },
                delegateYield: function(e, t, n) {
                    return this.delegate = {
                        iterator: I(e),
                        resultName: t,
                        nextLoc: n
                    },
                    "next" === this.method && (this.arg = void 0),
                    f
                }
            },
            a
        }
        function u(e, t, n, r, i, o, a) {
            try {
                var s = e[o](a)
                  , c = s.value
            } catch (e) {
                return void n(e)
            }
            s.done ? t(c) : Promise.resolve(c).then(r, i)
        }
        function l(s) {
            return function() {
                var e = this
                  , a = arguments;
                return new Promise(function(t, n) {
                    var r = s.apply(e, a);
                    function i(e) {
                        u(r, t, n, i, o, "next", e)
                    }
                    function o(e) {
                        u(r, t, n, i, o, "throw", e)
                    }
                    i(void 0)
                }
                )
            }
        }
        function d() {
            return (d = l(C().mark(function e(t, n) {
                var r;
                return C().wrap(function(e) {
                    for (; ; )
                        switch (e.prev = e.next) {
                        case 0:
                            return e.next = 2,
                            a.default.post("/course/breakpointselect", {
                                courseId: t.courseId,
                                itemId: n
                            });
                        case 2:
                            if ((r = e.sent).data.instance)
                                return e.abrupt("return", r.data.instance.breakpoint || 0);
                            e.next = 5;
                            break;
                        case 5:
                            return e.abrupt("return", 0);
                        case 6:
                        case "end":
                            return e.stop()
                        }
                }, e)
            }))).apply(this, arguments)
        }
        function i() {
            return (i = l(C().mark(function e(n) {
                var r, i, o;
                return C().wrap(function(e) {
                    for (; ; )
                        switch (e.prev = e.next) {
                        case 0:
                            return r = n.courseId,
                            e.next = 3,
                            a.default.post("/course/lastStation", {
                                courseId: r
                            });
                        case 3:
                            r = e.sent,
                            i = r.data.instance || {},
                            o = i.itemId,
                            i = i.record,
                            o ? (o = $(".nav li.section[id=" + o + "]"),
                            o.data("ischildren") ? o.trigger("click", i).closest(".parent").trigger("click") : o.trigger("click", i)) : (t = void 0,
                            0 < (t = $("#navUl").children("li.section:first").click().find("ul")).length && t.children("li:first").click());
                        case 6:
                        case "end":
                            return e.stop()
                        }
                    var t
                }, e)
            }))).apply(this, arguments)
        }
        $(function() {
            var e, t = $("#sessionId"), a = {
                activityId: t.data("activity"),
                stepId: t.data("step"),
                courseId: t.data("course"),
                notRecord: t.data("notrecord")
            };
            a.notRecord || (e = $("body").data("orgid"),
            t = t.data("activity"),
            134 == e && 589 == t && (0,
            c.setCourse)({
                isForbidPopQuestion: !0
            }));
            var s = null;
            $("#navUl").on("click", "li.section", function(e, n) {
                e.preventDefault();
                var r, i, o = $(this);
                if (!o.hasClass("parent"))
                    return o.hasClass("active") || ($("#navUl li.active").removeClass("active").find("a i").removeClass("icon-live"),
                    e = o.children("a").text(),
                    o.parent().hasClass("nav-sub") && (e = o.closest("li.parent").children("a").text() + " > " + e),
                    $("#currentSection").text(e),
                    a.notRecord || (0,
                    c.recordWatchTime)(2),
                    r = o.addClass("active").data("url"),
                    i = o.attr("id"),
                    l(C().mark(function e() {
                        var t;
                        return C().wrap(function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                case 0:
                                    if (!r) {
                                        e.next = 11;
                                        break
                                    }
                                    if (o.find("a i").addClass("icon-live"),
                                    n) {
                                        e.next = 6;
                                        break
                                    }
                                    return e.next = 5,
                                    function() {
                                        return d.apply(this, arguments)
                                    }(a, i);
                                case 5:
                                    n = e.sent;
                                case 6:
                                    s = new ckplayer({
                                        container: "#player",
                                        variable: "player",
                                        autoplay: !0,
                                        seek: n || 0,
                                        volume: 0,
                                        video: [[r, "video/mp4", "中文标清", 0]]
                                    }),
                                    (0,
                                    c.setPlayer)(s),
                                    e.next = 15;
                                    break;
                                case 11:
                                    s = null,
                                    t = o.data("resource"),
                                    $("#player").attr("style", ""),
                                    $("#player").html('<iframe border="0" frameborder="0" scrolling="no" src="' + t + '"></iframe>');
                                case 15:
                                    new f(Object.assign({
                                        player: s
                                    }, a, {
                                        itemId: i,
                                        elementLi: o
                                    }));
                                case 16:
                                case "end":
                                    return e.stop()
                                }
                        }, e)
                    }))()),
                    !1;
                o.hasClass("expand") ? o.removeClass("expand").find("i.parent-circle").removeClass("icon-jianhao-yuan-k").addClass("icon-jiahao-yuan-k") : ($("#navUl li.expand").removeClass("expand").find("i.parent-circle").removeClass("icon-jianhao-yuan-k").addClass("icon-jiahao-yuan-k"),
                o.addClass("expand").find("i.parent-circle").addClass("icon-jianhao-yuan-k").removeClass("icon-jiahao-yuan-k"))
            }),
            a.notRecord || (0,
            c.startLearn)(),
            function() {
                i.apply(this, arguments)
            }(a)
        });
        var f = function() {
            function e(e) {
                var t = e.player
                  , n = e.stepId
                  , r = e.courseId
                  , i = e.itemId
                  , e = e.elementLi;
                this.player = t,
                this.stepId = n,
                this.courseId = r,
                this.duration = 0,
                this.time = 0,
                this.resourceType = 0,
                this.ended = !1,
                this.itemId = i,
                this.heartbeat = 5e3,
                this.timeOut = null,
                this.elementLi = e,
                this.timeLock = !1,
                this.player ? this.init() : (this.resourceType = 1,
                this.setEnded())
            }
            var t = e.prototype;
            return t.init = function() {
                this.linsenceEventSetParams()
            }
            ,
            t.setEnded = function() {
                var e = l(C().mark(function e() {
                    return C().wrap(function(e) {
                        for (; ; )
                            switch (e.prev = e.next) {
                            case 0:
                                return this.ended = !0,
                                e.next = 3,
                                this.pushTime("documentEnded");
                            case 3:
                                this.setElementComplate();
                            case 4:
                            case "end":
                                return e.stop()
                            }
                    }, e, this)
                }));
                return function() {
                    return e.apply(this, arguments)
                }
            }(),
            t.startPushTime = function() {
                var e = this;
                this.timeOut = setInterval(function() {
                    e.pushTime("heartbeat")
                }, this.heartbeat)
            }
            ,
            t.stopPushTime = function() {
                this.timeOut && clearInterval(this.timeOut)
            }
            ,
            t.setElementComplate = function() {
                this.elementLi.find("i.icon").removeClass("icon-xian").addClass("icon-dui")
            }
            ,
            t.linsenceEventSetParams = function() {
                var t = this;
                this.player.addListener("duration", function(e) {
                    t.duration = e
                }),
                this.player.addListener("time", function(e) {
                    !1 === t.timeLock && (t.time = e)
                }),
                this.player.addListener("seekTime", function(e) {
                    t.timeLock = !0,
                    t.time = e,
                    t.stopPushTime(),
                    t.pushTime("seekTime")
                }),
                this.player.addListener("pause", function() {
                    t.stopPushTime(),
                    t.pushTime("pause")
                }),
                this.player.addListener("play", l(C().mark(function e() {
                    return C().wrap(function(e) {
                        for (; ; )
                            switch (e.prev = e.next) {
                            case 0:
                                return e.next = 2,
                                t.pushTime("play");
                            case 2:
                                t.stopPushTime(),
                                t.startPushTime();
                            case 4:
                            case "end":
                                return e.stop()
                            }
                    }, e)
                }))),
                this.player.addListener("ended", function() {
                    t.ended = !0,
                    t.stopPushTime(),
                    t.pushTime("ended"),
                    t.setElementComplate()
                }),
                this.player.addListener("play", function() {
                    0 === t.player.volume && t.player.changeVolume(1)
                })
            }
            ,
            t.getParams = function() {
                return {
                    videoTime: 0 | this.duration,
                    record: 0 | this.time,
                    ended: this.ended,
                    resourceType: this.resourceType,
                    itemId: this.itemId,
                    courseId: this.courseId,
                    stepId: this.stepId,
                    lessonId: ""
                }
            }
            ,
            t.pushTime = function() {
                var t = l(C().mark(function e(t) {
                    var n;
                    return C().wrap(function(e) {
                        for (; ; )
                            switch (e.prev = e.next) {
                            case 0:
                                return (n = this.getParams()).eventName = t,
                                e.next = 4,
                                a.default.post("/course/learnstatelog", n);
                            case 4:
                                n = e.sent,
                                this.timeLock = !1,
                                n.data && n.data.instance && 4 < n.data.instance.heartbeatSpace && (this.heartbeat = 1e3 * n.data.instance.heartbeatSpace);
                            case 7:
                            case "end":
                                return e.stop()
                            }
                    }, e, this)
                }));
                return function(e) {
                    return t.apply(this, arguments)
                }
            }(),
            e
        }()
    },
    8: function(e, t) {
        e.exports = jQuery
    }
});
